package com.charger.fault.service.impl;

import java.util.List;

import com.charger.fault.domain.Fault;
import com.charger.fault.mapper.FaultMapper;
import com.charger.fault.service.IFaultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 故障管理Service业务层处理
 *
 * @author xuan
 * @date 2024-11-22
 */
@Service
public class FaultServiceImpl implements IFaultService
{
    @Autowired
    private FaultMapper faultMapper;

    /**
     * 查询故障管理
     *
     * @param failureId 故障管理主键
     * @return 故障管理
     */
    @Override
    public Fault selectFailureByFailureId(Long failureId)
    {
        return faultMapper.selectFailureByFailureId(failureId);
    }

    /**
     * 查询故障管理列表
     *
     * @param fault 故障管理
     * @return 故障管理
     */
    @Override
    public List<Fault> selectFailureList(Fault fault)
    {
        return faultMapper.selectFailureList(fault);
    }


}
